package com.smh.a01butteredInputOrOutputStream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class BufferedStreamDemo4 {
    public static void main(String[] args) throws IOException {

        //true写在里面
        BufferedWriter bw = new BufferedWriter(new FileWriter("day27-code\\file\\b.txt", true), 8192);
        //一个字符是两个字节(java中)
        bw.write("asdadasdsa");
        //换行
        bw.newLine();
        bw.write("zxczczc");
        bw.newLine();
        bw.write("zxqweqewqeq");

        //一定要关闭啊,不然不会输入数据到文件中
        bw.flush();
        bw.close();

    }
}
